//
//  ModuleVCF.m
//  CocoaSynth
//
//  Created by Jeremy Brault on 09/02/10.
//  Copyright 2010 None. All rights reserved.
//

#import "ModuleVCF.h"
#import "IdentityComputingStrategy.h"
#import "Sample.h"

#import "AudioWrapper.h"
#import "SignalVisualizer.h"
#import "SynthKit.h"

@implementation ModuleVCF

#pragma mark -
#pragma mark Accessors

@synthesize cutOffFrequencyPort, cutOffFrequencySample, inputFrequencyModificator;

#pragma mark -
#pragma mark Memory Management

- (id)init
{
	if (self = [super init]) {
		cutOffFrequencyPort = nil;
		cutOffFrequencySample = nil;
		inputFrequencyModificator = kVCFDefault;
	}
	
	return self;
}

- (void)dealloc
{
	[cutOffFrequencyPort release];
	cutOffFrequencyPort = nil;

	[cutOffFrequencySample release];
	cutOffFrequencySample = nil;
	
	[super dealloc];
}

#pragma mark -
#pragma mark Module

- (void)read
{
	[super read];
	
	[self setCutOffFrequencySample:[cutOffFrequencyPort getSample]];
	//cutOffFrequencySample = [cutOffFrequencyPort getSample];
}

@end
